package com.hand.liut.service;

import com.hand.liut.dao.PaymentDao;
import com.hand.liut.entity.Payment;
import com.hand.liut.service.PaymentService;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 刘涛
 * @Description: TODO
 * @DateTime: 2021/7/15 20:12
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

  @Resource
  private PaymentDao paymentDao;

  @Override
  public int create(Payment payment) {
    return paymentDao.create(payment);
  }

  @Override
  public Payment findById(Long id) {
    return paymentDao.findById(id);
  }
}
